package com.east.sng.service;

import com.east.sng.entity.param.UserParam;
import com.east.sng.entity.result.UserFind;
import com.east.sng.entity.result.UserInfo;

import java.util.List;
import java.util.Map;

/**
 * @author east
 * @date: 2020/12/27
 * @Description:
 **/
public interface UserService {

    List<UserInfo> findUserRoles(Map<String, Object> params);
    UserFind findUser(String userName);

    void addUser(UserParam user);
    void editUserPassword(UserParam user);
    boolean assignUserRole(Integer roleId, Integer userId);

    boolean checkUserName(String userName);
    boolean removeUser(Integer userId);
    boolean batchRemoveUsers(List<Integer> userIds);
    boolean recoverUser(Integer userId);
    boolean batchRecoverUsers(List<Integer> userIds);
}
